package com.lmy.springCloud;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * 需要取消数据源的自动配置，使用seata代理数据源。
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableDiscoveryClient  //启用服务发现
@EnableFeignClients
@MapperScan(basePackages= {"com.lmy.springCloud.dao"})  //配置mapper扫描哪些包及其子包
public class SeataStorageMicroServiceApplication20090 {

    public static void main(String[] args) {
        ConfigurableApplicationContext ioc
                = SpringApplication.run(SeataStorageMicroServiceApplication20090.class, args);

    }
}
